package com.zhonghui.common.eshopAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Query {
    String propName() default "";

    Query.Type type() default Query.Type.EQUAL;

    String blurry() default "";

    public static enum Type {
        EQUAL,
        GREATER_THAN,
        GREATER_THAN_NQ,
        LESS_THAN,
        INNER_LIKE,
        LEFT_LIKE,
        RIGHT_LIKE,
        LESS_THAN_NQ,
        IN,
        NOT_EQUAL,
        BETWEEN,
        NOT_NULL,
        UNIX_TIMESTAMP;

        private Type() {
        }
    }
}
